/* 装饰元素 */
.tech-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.tech-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(79, 70, 229, 0.5);
    opacity: 0.7;
}

.tech-corner.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.tech-corner.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.tech-corner.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.tech-corner.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.tech-circuit {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='100' height='100'%3E%3Cpath d='M10,50 L30,50 L30,20 L50,20 L50,40 L70,40 L70,60 L90,60' stroke='rgba(79, 70, 229, 0.3)' fill='none' stroke-width='1'/%3E%3Cpath d='M10,70 L40,70 L40,90 L60,90 L60,60 L90,60' stroke='rgba(79, 70, 229, 0.3)' fill='none' stroke-width='1'/%3E%3Ccircle cx='30' cy='50' r='2' fill='rgba(79, 70, 229, 0.5)'/%3E%3Ccircle cx='50' cy='20' r='2' fill='rgba(79, 70, 229, 0.5)'/%3E%3Ccircle cx='70' cy='40' r='2' fill='rgba(79, 70, 229, 0.5)'/%3E%3Ccircle cx='40' cy='70' r='2' fill='rgba(79, 70, 229, 0.5)'/%3E%3Ccircle cx='60' cy='90' r='2' fill='rgba(79, 70, 229, 0.5)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    opacity: 0.5;
}

/* 背景效果 */
.tech-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.tech-circle {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    box-shadow: 0 0 100px 50px rgba(79, 70, 229, 0.1);
}

.circle-2 {
    bottom: -20%;
    left: -20%;
    top: auto;
    right: auto;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(111, 99, 247, 0.15) 0%, transparent 70%);
    animation-delay: -5s;
    animation-duration: 25s;
    box-shadow: 0 0 120px 60px rgba(111, 99, 247, 0.1);
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(79, 70, 229, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

/* 文本效果 */
.glow-text {
    text-shadow:
        0 0 10px rgba(79, 70, 229, 0.7),
        0 0 20px rgba(79, 70, 229, 0.5);
}

.glow-text-sm {
    text-shadow: 0 0 5px rgba(79, 70, 229, 0.7);
}

/* 卡片和按钮 */
.tech-card {
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
    position: relative;
    z-index: 1;
}

.tech-card:hover {
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.3);
}

.tech-button {
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.tech-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.5);
}

.tech-button-secondary {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tech-button-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

.button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-button:hover .button-glow {
    opacity: 1;
    animation: pulse 2s infinite;
}

/* 阴影效果 */
.shadow-glow {
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

.shadow-glow-sm {
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.4);
}

/* 进度条 */
.progress-bar {
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, 20px) rotate(5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tech-corner {
        width: 20px;
        height: 20px;
    }

    .tech-circuit {
        width: 100px;
        height: 100px;
    }
}
